Xceed Toolkit Plus for WPF v4.6 Documentation
FilterExpression Constructor(String,FilterOperator,DateTime,Nullable<Boolean>)


Xceed.Wpf.ListBox Assembly > Xceed.Wpf.Data Namespace > FilterExpression Class > FilterExpression Constructor : FilterExpression Constructor(String,FilterOperator,DateTime,Nullable<Boolean>)
A string representing the name of the member by whose values the items are to be filtered.
A FilterOperator value representing the operator to use.
A DateTime representing the filter value.
true if the time portion of the value should be considered; false if it should be ignored. If a null reference (Nothing in Visual Basic), the time portion will be considered.
Initializes a new instance of the FilterExpression class specifying the name of the member by whose values the items are to be filtered, the filter operator, the date-time filter value, as well as indicating whether the time portion of the value should be considered.
Syntax
'Declaration
 
Public Function New( _
   ByVal memberName As String, _
   ByVal filterOperator As FilterOperator, _
   ByVal value As Date, _
   ByVal isTimeSensitive As Nullable(Of Boolean) _
)
'Usage
 
Dim memberName As String
Dim filterOperator As FilterOperator
Dim value As Date
Dim isTimeSensitive As Nullable(Of Boolean)
 
Dim instance As New FilterExpression(memberName, filterOperator, value, isTimeSensitive)
public FilterExpression( 
   string memberName,
   FilterOperator filterOperator,
   DateTime value,
   Nullable<bool> isTimeSensitive
)

Parameters

memberName
A string representing the name of the member by whose values the items are to be filtered.
filterOperator
A FilterOperator value representing the operator to use.
value
A DateTime representing the filter value.
isTimeSensitive
true if the time portion of the value should be considered; false if it should be ignored. If a null reference (Nothing in Visual Basic), the time portion will be considered.
Remarks

Values entered into the filter row are neither case sensitive nor time sensitive. If a case- or time- sensitive value is provided via a filter expression, an exception will be thrown. In other words, when creating a filter expression that is to be assigned to a filter row programmatically, its IsCaseSenstive and IsTimeSensitive properties must both be set to false.

Once the filter expression has been created, it is considered "frozen" and its values can no longer be modified.

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FilterExpression Class
FilterExpression Members
Overload List